package com.ruoyi.project.drug.service.impl;

import com.ruoyi.project.drug.domain.DrugInbound;
import com.ruoyi.project.drug.mapper.DrugInboundMapper;
import com.ruoyi.project.drug.service.DrugInboundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DrugInboundServiceImpl implements DrugInboundService {

    @Autowired
    private DrugInboundMapper drugInboundMapper;

    @Override
    public List<DrugInbound> selectDrugInbound(DrugInbound drugInbound) {
        return drugInboundMapper.selectDrugInbound(drugInbound);
    }

    @Override
    public int insertInbound(DrugInbound drugInbound) {
        return drugInboundMapper.insertInbound(drugInbound);
    }

    @Override
    public DrugInbound selectInboundById(Long id) {
        return drugInboundMapper.selectInboundById(id);
    }

    @Override
    public int updateInbound(DrugInbound drugInbound) {
        return drugInboundMapper.updateInbound(drugInbound);
    }

    @Override
    public int deleteInboundByIds(Long[] inboundIds) {
        return drugInboundMapper.deleteInboundByIds(inboundIds);
    }


}
